<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp" %>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>下单 - 小黄车中心</title>
		<%@ include file="/common/include/title.jsp" %>
		<!-- 引入js文件的时候要注意顺序 -->
		<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath }/My97DatePicker/WdatePicker.js"></script>
	</head>
	<body>
		<%-- 静态包含
			因为在做第二个页面的时候每个页面的头,脚,都一样,所以将重复的代码单独放到一个文件中
		 --%>
		<%@ include file="/common/include/header.jsp" %>
		<div class="container-fluid">
			<div class="row">
				<div class="col-sm-8 col-sm-offset-1 main">
					<h2 class="sub-header">下单添加</h2>
					
					<form id="form" class="form-horizontal" 
						method="post" action="${rootPath }/head/OrdersHeadServlet?method=ordersInsertSubmit">
						
						<%--bid --%>
						<input type="hidden" name="bid" value="${requestScope.bike.id }">
						
						<div class="form-group">
							<label for="name" class="col-sm-2 control-label">分类:</label>
							<div class="col-sm-8">
								${requestScope.bike.cate.name }
							</div>
						</div>
						<div class="form-group">
							<label for="name" class="col-sm-2 control-label">名称(数字):</label>
							<div class="col-sm-8">
								${requestScope.bike.name }
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">价格:</label>
							<div class="col-sm-8">
								${requestScope.bike.price }
							</div> 
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">报修次数:</label>
							<div class="col-sm-8">
								${requestScope.bike.repairCount }
							</div> 
						</div>
						<div class="form-group">
							<label for="status" class="col-sm-2 control-label">密码:</label>
							<div class="col-sm-8">
								${requestScope.bike.password }
							</div> 
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-2">
								<button class="btn btn-lg btn-primary" type="submit">提交</button>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-2">
								<a href="${pageContext.request.contextPath }/head/OrdersHeadServlet?method=OrdersEnd&orderid=${orderid }&orderHisid=${orderHisid }"  class="btn btn-primary">结束骑车</a>
							</div>
						</div>
						
					</form>
				</div>
			</div>
		</div>
		${info }
		<%-- 包含一下脚 --%>
		<%@ include file="/common/include/footer.jsp" %>
	</body>
</html>